<?php

if(!defined('IN_DISCUZ')) {
	exit('Access Denied');
}

if(isset($_GET['goods'])) {
    $id    = intval($_GET['goods']);
    $goods = DB::fetch_first("SELECT * FROM ".DB::table('winner_goods')." WHERE goodsid='$id'");
    if(!$goods) {
        showmessage('undefined_action');
    }
    $lottery = $exchange = $jointly = false;
    $$goods['type'] = true;
    include template('winner/view_' . $goods['type']);
}